/**
 * Copyright (c) 2020-2022 宁波哥爱帮科技有限公司
 */
package cn.grab.fispservice.system.model;

import cn.grab.fispapi.system.dto.SysDictItemDTO;
import cn.grab.fispapi.system.vo.SysDictItemVO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fontana.db.mapper.BaseModelMapper;
import com.fontana.db.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 实体类
 *
 * @author Auto
 * @since 2022-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict_item")
public class SysDictItem extends BaseModel {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;
    /**
     * 字典id
     */
    @TableField(value = "dict_code")
    private String dictCode;
    /**
     * 字典项文本
     */
    @TableField(value = "item_text")
    private String itemText;
    /**
     * 字典项值
     */
    @TableField(value = "item_value")
    private String itemValue;
    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;
    /**
     * 排序
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;
    /**
     * 状态（1启用 0不启用）
     */
    @TableField(value = "status")
    private Integer status;

    @Mapper
    public interface SysDictItemModelMapper extends BaseModelMapper<SysDictItemDTO, SysDictItem, SysDictItemVO> {
    }

    public static final SysDictItemModelMapper INSTANCE = Mappers.getMapper(SysDictItemModelMapper.class);

}
